const { Op } = require('sequelize')
const visitingModel = require("../../database/model-visiting");
const read = async (ids = []) => {
  const rows = await visitingModel.findAll({
    where:{
      id: {
        [Op.or]: ids,
      }
    }
  });
  return rows
};

module.exports = read